// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

import 'default-passive-events'

//引入element-ui

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//引入axios
import  Axios from 'axios'


Vue.prototype.$axios =Axios;
Axios.defaults.baseURL = '/api';





Vue.config.productionTip = false;
Vue.use(ElementUI);





//引入vue-router路由
//
// import VueRouter from 'vue-router'
//
// Vue.use(VueRouter);
//
//
// import {Start,List,New,error404,Main} from './vaew' //创建组件
//
//
//
//
// const routes = [                      //配置路由
//   {past:'/Main' ,component:Main},
//   { path: '/list', component: List },
//   { path:'/start',component:Start },
//   { path: '/new', component: New },

  // {path:'*',redirect:'/start'},     //初始位置在那
//
// ];
//
//
//
//
// const router = new VueRouter({
//   routes // short for `routes: routes`
// });                                        //实例化VueRouter
//
//
import  router from './routes'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'                       //挂载路由
});





import moment from 'moment'  //挂载

Vue.prototype.$moment = moment;






import './style/main.css'



